package com.shierke.Ume.ui.fragment.explore

import ViewPagerAdapterLazyFragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.shierke.Ume.R
import com.shierke.Ume.ui.adapter.explore.ExploreTrendAdapter
import kotlinx.android.synthetic.main.fragment_explore_trend.*

/**
 * Create by Ybx
 * on 2020-10-14
 * Desribe:
 */
class ExploreTrendFragment :ViewPagerAdapterLazyFragment() {
    override fun onFragmentShow() {

    }

    override fun onFragmentHide() {
    }


    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        trendFollow.layoutManager =
            StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL)

        val exploreTrendAdapter = ExploreTrendAdapter()
        trendFollow.adapter = exploreTrendAdapter

    }


    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {


        val view =
            LayoutInflater.from(activity).inflate(R.layout.fragment_explore_trend, null, false)


        return view
    }







}